<?php

/**
 * 网站后台路由 -- 专家名录
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/zj/'],function() {
	//列表
	Route::get('datalist', 'ZjController@listData');
    Route::get('datatablelist', 'ZjController@bootstrapTableList');
	//新增
	Route::get('addview', 'ZjController@addDataView');
	Route::post('addsave', 'ZjController@toAddData');
	//修改
	Route::get('editview/{id}', 'ZjController@updateDataView');
	Route::post('editsave/{id}', 'ZjController@toUpdateData');
	//状态修改
	Route::get('status/{id}/{status?}', 'ZjController@toStatusData');
	//删除
	Route::delete('destroy', 'ZjController@toDelData');
});

